package com.fry.expandablelistviewexdemo;

import android.app.ExpandableListActivity;
import android.os.Bundle;
import android.view.View;

public class Main 
	extends ExpandableListActivity {
    
	private SampleAdapter mAdapter;
	private ExpandableListViewEx mListView;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        mAdapter = new SampleAdapter(this);
        mListView = (ExpandableListViewEx)getExpandableListView();
        mListView.setAdapter(mAdapter);
        mListView.setPinnedHeaderView(R.layout.header);
    }
}